package com.example.aidldemo.test.dragfooterview;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;

import com.example.aidldemo.R;
import com.example.aidldemo.test.dragfooterview.adapter.ShowMoreAdapter;

/**
 * Created by dear33 on 2016/11/13.
 */
public class ShowMoreActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_more);
        setTitle("ShowMoreActivity");

        setupRecyclerView();
    }

    private void setupRecyclerView() {
        RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_view);
        recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));

        ShowMoreAdapter adapter = new ShowMoreAdapter(this);
        recyclerView.setAdapter(adapter);
    }
}
